package cn.e2win.biz.comm;


import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.e2win.base.json.vo.Pager;
import cn.e2win.biz.annotation.PageParam;
import cn.e2win.biz.base.BaseController;
import cn.e2win.biz.base.BaseService;


@Controller
@Scope("request")
@RequestMapping("/logger")
public class LoggerController extends BaseController{
	@Autowired
	private LoggerService loggerService;
	
	@Override
	public BaseService initService() {
		return loggerService;
	}

	// 出库单列表
	@RequestMapping("loggerPager")
	public String outOrderPager(HttpServletRequest request, @PageParam Pager pager,
			ModelMap modelMap) {
		try {
			loggerService.pagerLogger(pager);
			modelMap.put("pager", pager);
			return "stock/outOrderPager";
		} catch (Exception e) {
			e.printStackTrace();
			logger.error(e);
			return "msg/common/fail";
		}
	}


}